<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="/common/jsp/taglibs-nojs-nocss.jsp"%>
<%@include file="/common/jsp/cssAndScript.jsp"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"+ request.getServerName() + ":" + request.getServerPort()+ path + "/";
%>
<base href="<%=basePath%>"/>
<%@include file="/pages/head.jsp"%>
  <div id="main_container">
    <div id="container_border">
        <div class="window_1">
        	<div id="assistFee_div">
            	<h3 class="priceRulelist_title_pic_2">部门管理列表</h3>
            	<a class="btn_box btn_file_icon2" href="javascript:void(0)" onclick="showDialog('新建部门','companyInfo/initAddDepartment',500,400)">新建</a>
        	</div>
        </div>
    <div class="window_bottom">
		<div id="pricerulemanage">         
            <table width="100%" border="0" cellpadding="0"  cellspacing="0" class="gridview"  id="pricerule_table">
                <thead>
                <tr class="title">
                    <td style="width: 150px;">序号</td>
                    <td >名称</td>
                    <td >备注</td>
                    <td >操作</td>
                </tr>
                </thead>
                <tbody class="mytbody">
                	<s:if test="listDepartment.size()==0">
                		<tr>
                			<td colspan="2" align="center">无记录</td>
                		</tr>
                	</s:if><s:else>
		                <s:iterator value="listDepartment" status="stat">
			                <tr>
			                    <td><s:property value="#stat.count"/></td>
			                    <td ><s:property value="name"/></td>
			                    <td ><s:property value="memo"/></td>
			                    <td >
									<a href="javascript:void(0)" onclick="showDialog('编辑部门','companyInfo/initAddDepartment.action?department.id=<s:property value="id"/>',500,400)">修改</a> 			                    
			                    	<a href="companyInfo/deleteDepartment.action?department.id=<s:property value="id"/>">删除</a>
			                    </td>
			                </tr>
		                </s:iterator>
                	</s:else>
                </tbody>
           </table>
        </div> 
    </div>
    </div>
 </div>
